<script>window.jQuery || document.write('<script src="js/jquery.min.js"><\/script>')</script>
	<!-- Anything Slider -->
<script src="js/jquery.anythingslider.js"></script>
	<!-- AnythingSlider initialization -->
<?php
//RECUPERATION ET TRANSFORMATION DES LIGNES-----------
$reqLigne=mysql_query("SELECT * FROM actualites WHERE MiseEnLigneActu='oui' ORDER BY Annee , Mois, Jour ") or die(mysql_error());
$nbLigne=mysql_num_rows($reqLigne);
if($nbLigne>0){
	$ni=0;
	
	$Lignes="return[";
	//$Lignes.="'', ";
	while($row=mysql_fetch_array($reqLigne)){

	$Jour=$row['Jour'];
	$Mois=str_replace($NumMois, $LetterMois, $row['Mois']);
	$NomJour=$row['NomJour'];
	$ni++;
	$Lignes.="'".$NomJour." ".$Jour." ".$Mois;
		if($ni<$nbLigne){
		$Lignes.="', ";
		}
		else{
		$Lignes.="'";
		}
	}
	$Lignes.="][index - 1];";
}
echo "<script>
		// DOM Ready
		$(function () {
		    var positionDernierElement = $('#slider div.Contain').size();
			$('#slider').anythingSlider({
			
				autoPlay            : false,
				 startPanel          : positionDernierElement,
				   onInitialized       : $('.anythingControls .next').click(),

				navigationFormatter : function(index, panel){
				".$Lignes."
				}
			});
		});
</script>";
?>
<script>
$("#slide-jump").click(function(){
				$('#slider').anythingSlider(4);
				return false;
			});
			</script>